/*******************************************************************************
 * Copyright (c) 2013 INTERAMERICAN PROPERTY AND CASUALTY INSURANCE COMPANY S.A. 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/copyleft/lesser.html
 * 
 * This library is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU Lesser General Public License for more details.
 ******************************************************************************/
package gr.interamerican.bo2.impl.open.doc;

import gr.interamerican.bo2.arch.exceptions.DataException;
import gr.interamerican.bo2.arch.exceptions.LogicException;
import gr.interamerican.bo2.utils.doc.DocumentEngineException;

/**
 * Simple {@link TemplateFillerOperation} that just fills the fields
 * of the template.
 * 
 * @param <T> 
 *        Type of model object.
 */
public class SimpleTemplateFillerOperation<T> extends TemplateFillerOperation<T> {
	
	@Override
	protected void work() 
	throws DataException, LogicException, DocumentEngineException {
		this.getDocument().setFields(this.getModel());
	}

}
